package usercontroller

import (
	"github.com/gin-gonic/gin"
	"services/userservice"
	"controllers"
)

// 登录
func Login(c *gin.Context) {
	userName := c.PostForm("name")
	password := c.PostForm("password")
	response := userservice.Login(userName, password)
	controllers.SendResponse(c,response)
}
